#ifndef JSONFILEHELPER_H
#define JSONFILEHELPER_H

#include <QObject>
#include <QJsonDocument>
#include <QJsonObject.h>
#include <QJsonArray.h>
#include <QFile.h>
#include "src/Models/NormalDefectModels.h"



class JsonFileHelper
{
    Q_GADGET
public:
     JsonFileHelper() = default ;

public:
    bool ReadJsonFile(QString jsonfileName,NormalDetectBase&,VerticalLengthDetectBase&,FrequencyDetectBase&,DirectLevelBase&,BesideDetectBase&);
    bool WriteJsonFile(QString jsonfileName);

    void JsonParseToObj(const QJsonDocument &doc,QString objName,NormalDetectBase&);
};

#endif // JSONFILEHELPER_H
